package com.flower.pojo;

import java.util.Date;
import java.util.UUID;

/**
 * 进货商品表
 * @author 黄静娜
 * @date 2019年12月14日 下午4:40:18
 */
public class ProductBill {
	private String id;
	private Date create_time;
	private Date update_time;
	private String firm_name;
	private String firm_address;
	private String phone;
	private Integer count;
	private String title;
	private String number;
	private Double price;
	
	{
		System.out.println("局部代码块");
		if(this.id == null) {
			this.id = UUID.randomUUID().toString().replace("-","");
		}
		this.create_time = new Date();
		this.update_time = new Date();
	}
	
	public ProductBill(
			String firm_name,
			String firm_address,
			String phone,
			Integer count,
			String title,
			String number,
			Double price) {
		this.firm_name = firm_name;
		this.firm_address = firm_address;
		this.phone = phone;
		this.count = count;
		this.title = title;
		this.number = number;
		this.price = price;
	}

	public ProductBill(
			String id, 
			String firm_name,
			String firm_address,
			String phone,
			Integer count,
			String title,
			String number,
			Double price) {
		this.id = id;
		this.firm_name = firm_name;
		this.firm_address = firm_address;
		this.phone = phone;
		this.count = count;
		this.title = title;
		this.number = number;
		this.price = price;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public String getFirm_name() {
		return firm_name;
	}
	public void setFirm_name(String firm_name) {
		this.firm_name = firm_name;
	}
	public String getFirm_address() {
		return firm_address;
	}
	public void setFirm_address(String firm_address) {
		this.firm_address = firm_address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}


	public Integer getCount() {
		return count;
	}


	public void setCount(Integer count) {
		this.count = count;
	}


	public Double getPrice() {
		return price;
	}


	public void setPrice(Double price) {
		this.price = price;
	}
	
}
